package top.sssd.spi.pf4j.impl;

import org.pf4j.Extension;
import top.sssd.spi.pf4j.api.GreetingPlugin;
import top.sssd.spi.pf4j.api.GreetingService;
import top.sssd.spi.pf4j.api.PluginContext;

public class EnglishPlugin extends GreetingPlugin {

    @Extension
    public static class EnglishGreetingServiceImpl implements GreetingService {
        @Override
        public void sayHello(String name) {
            System.out.println("Hello " + name);
        }
    }

    public EnglishPlugin(PluginContext context) {
        super(context);
    }

    @Override
    public void start() {
        System.out.println("EnglishPlugin start");
    }

    @Override
    public void stop() {
        System.out.println("EnglishPlugin stop");
    }

    @Override
    public void delete() {
        System.out.println("EnglishPlugin delete");
    }
}
